wayland: Unset window_impl->commit_pending when hiding the surface
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 1 Sep 2014 18:20:49 +0000 (20:20 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 1 Sep 2014 20:44:08 +0000 (22:44 +0200)
commit7fbac5771222fe8ab0eb2b61cf567b63b13b3712
treec5dbf78fcaef12605464938b0349985d41a7c548
parent382d68ff8e5701a10aa8d4f879c46c63c21e075f
wayland: Unset window_impl->commit_pending when hiding the surface

A surface may be hidden when a frame is already scheduled, which may cause
crashes on on_frame_clock_after_paint() when calling commit() on a NULL
surface. To fix this, ensure commit_pending is also set to FALSE when the
surface is gone.

https://bugzilla.gnome.org/show_bug.cgi?id=735226
gdk/wayland/gdkwindow-wayland.c